package com.holly.unit.deform.modular.pojo;

import com.holly.unit.core.pojo.request.BaseRequest;
import com.holly.unit.scanner.api.annotation.field.ChineseDescription;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 类描述: 删除一对多请求参数封装
 *
 * @author fxr
 * @version 1.0.0
 * @date 2022/4/9 11:55
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class DesignFormDelRequest extends BaseRequest {

    /***
     * 主键id
     */
    @NotNull(message = "表单id不能为空", groups = {delById.class})
    @ChineseDescription("表单id")
    private String id;

    @NotNull(message = "表单ids不能为空", groups = {delByIds.class})
    @ChineseDescription("表单ids")
    private String ids;

    public @interface delByIds{}

    public @interface delById{}
}
